FROM  williamyeh/java8:latest
# aws config
ARG AWS_ACCESS_KEY_ID
ARG AWS_REGION
ARG AWS_SECRET_ACCESS_KEY
# aws env config
#ENV AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID  AWS_REGION=$AWS_REGION  AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY


# UTF-8 并配置环境
ENV LANG C.UTF-8

# add jar
ADD ./target/resource-*.jar /deploy/resource-0.0.1.jar

# start
ENTRYPOINT ["java","-Xmx3500m","-Dspring.profiles.active=gqc","-Djava.security.egd=file:/dev/./urandom","-jar","/deploy/resource-0.0.1.jar"]
